package com.fang.system.rpc.dispatcher;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/7/17 12:31 上午
 **/
public class Dispatcher {
    private static ConcurrentHashMap<String, Object> invokerMap = new ConcurrentHashMap<>();

    public void register(String k, Object v) {
        invokerMap.put(k, v);
    }

    public Object get(String k) {
        return invokerMap.get(k);
    }
}
